<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="list" action="reset">${message(code:'menu.back_to_home')}</g:link></span>
        </div>
        <div class="body">
            <g:if test="${resultMessage}">
            <div class="message">${resultMessage}</div>
            </g:if>
          <g:if test="${bookTotal}">
              <div class="list">
                  <table>
                      <thead>
                          <tr>
                            <th>${message(code:'label.book_name')}</th>
                          </tr>
                      </thead>
                      <tbody>
                      <g:each in="${bookList}" status="i" var="book">
                          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                              <td><g:link controller="register" action="init" id="${book.name}">${fieldValue(bean:book, field:'name')}</g:link></td>
                          </tr>
                      </g:each>
                      </tbody>
                  </table>
              </div>
            </g:if>
        </div>
    </body>
</html>
